package com.cc.moxingvoice.model;

import android.databinding.BaseObservable;
import android.graphics.drawable.Drawable;

/**
 * 创建日期：2018/2/23 on 9:49
 * 描述：
 * 作者：郭士超
 * QQ：1169380200
 */

public class AppBarData extends BaseObservable {

    private String title;
    private String titleLeft;
    private String titleRight;
    private Drawable imsLeft;
    private Drawable imsRight;
    private boolean isLeft;
    private boolean isRight;

    public AppBarData(String title, Drawable imsLeft, Drawable imsRight, String titleLeft, String titleRight, boolean isLeft, boolean isRight) {
        this.title = title;

        this.imsLeft = imsLeft;
        this.imsRight = imsRight;

        if (titleLeft == null) {
            this.titleLeft = "";
        } else {
            this.titleLeft = titleLeft;
        }
        if (titleRight == null) {
            this.titleRight = "";
        } else {
            this.titleRight = titleRight;
        }

        this.isLeft = isLeft;
        this.isRight = isRight;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitleLeft() {
        return titleLeft;
    }

    public void setTitleLeft(String titleLeft) {
        this.titleLeft = titleLeft;
    }

    public String getTitleRight() {
        return titleRight;
    }

    public void setTitleRight(String titleRight) {
        this.titleRight = titleRight;
    }

    public Drawable getImsLeft() {
        return imsLeft;
    }

    public void setImsLeft(Drawable imsLeft) {
        this.imsLeft = imsLeft;
    }

    public Drawable getImsRight() {
        return imsRight;
    }

    public void setImsRight(Drawable imsRight) {
        this.imsRight = imsRight;
    }

    public boolean isLeft() {
        return isLeft;
    }

    public void setLeft(boolean left) {
        isLeft = left;
    }

    public boolean isRight() {
        return isRight;
    }

    public void setRight(boolean right) {
        isRight = right;
    }
}
